package com.class03._extends.test2;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2024/4/7 9:19
 */
public class Person {
    protected String name;
    protected void eat(){
        String name = this.name;
        System.out.println(name);
        System.out.println("吃饭");
    }

    public static void main(String[] args) {
        Person p = new Person();
        p.eat();
        p.name = "张三";
        System.out.println(p.name);
    }

}
